<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2024-06-20
  Time: 19:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
  String path = request.getContextPath();
%>
<%--<form action="${pageContext.request.contextPath}/add" method="get">--%>

<form action="<%=path%>/add" method="post">
  <%--<form action="/javaweb_02/add" method="get">--%>
  <input type="text" name="userName" placeholder="请输入用户名称"><br>
  <input type="password" name="passWord" placeholder="请输入用户密码"><br>
  <input type="text" name="userPhone" placeholder="请输入用户手机"><br>
  <input type="radio" name="userSex" value="1" checked>男
  <input type="radio" name="userSex" value="2">女<br>
  <input type="submit" value="提交">
  <a href="<%=path%>/jsp/home.jsp">取消</a>
</form>
</body>
</html>
